package com.yellow.dispatchservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("vehicle_assignments")
public class VehicleAssignment {

    @TableId(value = "assignment_id", type = IdType.AUTO)
    private Integer assignmentId;

    @TableField("vehicle_id")
    private Integer vehicleId;

    @TableField("courier_id")
    private Integer courierId;

    @TableField("assignment_date")
    private LocalDate assignmentDate;

    @TableField("assigned_by")
    private String assignedBy;
}
